﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace ERPSystem.Common.Domains.PurchaseInvoiceCommon
{
    /// <summary>
    /// 采购退货单子表
    /// </summary>
    [SugarTable("PurchaseReturnOrderSubtables")]
    public class PurchaseReturnOrderSubtable
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int PurchaseReturnOrderSubtableId { get; set; }
        /// <summary>
        ///跟单编号
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string CopyNo { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string MaterialNo { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string MaterialName { get; set; }
        /// <summary>
        /// 批号
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string LotNumber { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Num { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int OutboundShipmentsNum { get; set; }
        /// <summary>
        /// 退货说明
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string ReturnInstructions { get; set; }
        /// <summary>
        /// 流水号 外键
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string PurchaseReturnOrderSerialNumber { get; set; }
    }
}
